package com.example.coursehub.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.example.coursehub.entity.ExerciseQuestion;
import com.example.coursehub.entity.ExerciseQuestionId;

public interface ExerciseQuestionRepository
        extends JpaRepository<ExerciseQuestion, ExerciseQuestionId>, JpaSpecificationExecutor<ExerciseQuestion> {
    public void deleteByExercise_ExerciseId(String exerciseId);
    public List<ExerciseQuestion> findByExercise_ExerciseId(String exerciseId);
}